home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / ARRAYLEN.HDR < prev    next >
Text File  |  1994-04-25  |  780b  |  35 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _arraylen(axArrayName) --> nNumberElements
  8.  
  9. PARAMETERS:
  10.  
  11. axArray:  The name of an array whose elements are to be counted
  12.  
  13. SHORT:
  14.  
  15. Count number of array elements that actually contain values.
  16.  
  17. DESCRIPTION:
  18.  
  19. _ArrayLen() counts the number of elements in the array, axArrayName, and
  20. the length of the array without undefined elements
  21.  
  22. NOTE:
  23.  
  24. EXAMPLE:
  25.  
  26. LOCAL aArray[10]
  27.  
  28. aArray[1] = "One"
  29. aArray[2] = "Two"
  30. aArray[5] = "Five"
  31.  
  32. ? _arraylen(aArray) // 3
  33.  
  34. ******************************************************************************/
  35.